<?php //echo '<pre>'; print_r($projects) ?>
<div class="header-title">Menus</div>

<?php echo form_open('menus/edit/'.$menu_id); ?>
<?php echo form_hidden('menu_id', $menu_id); ?>
<table>
    <tr>
        <td>Menu name</td>
        <td><?php echo form_input('menu_name', $menu_name); ?>
            <?php echo form_error('menu_name'); ?>
        </td>
    </tr>
    <tr>
        <td>Menu description</td>
        <td><?php echo form_input('menu_description', $menu_description); ?></td>
        <td><?php echo form_error('menu_description'); ?></td>
    </tr>
    <tr>
        <td>Controller</td>
        <td><?php echo form_dropdown('controller_id', $options_controller, $controller_id);?></td>
    </tr>
    <tr>
        <td>Action default</td>
        <td><?php echo form_dropdown('action_id', $options_action, $action_id);?></td>
    </tr>
    <tr>
        <td colspan="2">
            <?php echo form_submit('btnSave', 'Save'); ?>
            <?php echo form_reset('btnReset', 'Reset'); ?>      
            <?php echo form_button(array( 'name' => 'btnBack', 'id' => 'btnBack', 'content' => 'back')); ?> 
        </td>
    </tr>
</table>
<script>
    $('#btnBack').click(function(){
        window.location.href = '<?php echo base_url() ?>index.php/menus';
    });
</script>
